package com.naiterui.ehp.bs.consult.feign;

import com.naiterui.ehp.bp.bo.groupConsult.GroupConsultPreSignBO;
import com.naiterui.ehp.bp.bo.groupConsult.GroupConsultPreSignParamBO;
import com.naiterui.ehp.bp.bo.groupConsult.GroupConsultSignParamBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 *
 */
@ApiIgnore
@RequestMapping("inner")
@FeignClient(name = "emrEsign", url = "${ehp.domain.esign}", configuration = FeignConfiguration.class)
public interface ESignFeignClient {


    @PostMapping("groupconsult/presign")
    GroupConsultPreSignBO presign(@RequestBody GroupConsultPreSignParamBO groupConsultPreSignParamBO) throws BusinessException;


    @PostMapping("groupconsult/sign")
    void sign(@RequestBody GroupConsultSignParamBO groupConsultSignBO) throws BusinessException;

}
